package service.impl;

import mapper.PlaceMapper;
import org.apache.ibatis.session.SqlSession;
import pojo.Place;
import service.PlaceService;
import utils.GetSqlSession;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-12-09
 * Time: 12:00
 */
public class PlaceServiceImpl implements PlaceService {
    SqlSession sqlSession = GetSqlSession.getSqlSession();
    PlaceMapper placeMapper = sqlSession.getMapper(PlaceMapper.class);
    @Override
    public Place getPlaceByName(String placeName) {
       return placeMapper.getPlaceByName(placeName);
    }
}
